import request from '@/utils/request'

// 查询佣金记录列表
export function listBrokerage(query) {
  return request({
    url: '/novel/brokerage/list',
    method: 'get',
    params: query
  })
}

// 查询佣金记录详细
export function getBrokerage(id) {
  return request({
    url: '/novel/brokerage/' + id,
    method: 'get'
  })
}

// 新增佣金记录
export function addBrokerage(data) {
  return request({
    url: '/novel/brokerage',
    method: 'post',
    data: data
  })
}

// 修改佣金记录
export function updateBrokerage(data) {
  return request({
    url: '/novel/brokerage',
    method: 'put',
    data: data
  })
}

// 删除佣金记录
export function delBrokerage(id) {
  return request({
    url: '/novel/brokerage/' + id,
    method: 'delete'
  })
}
// 查询佣金记录列表
export function getUserInfo(query) {
  return request({
    url: '/novel/brokerage/getUserInfo',
    method: 'get',
    params: query
  })
}
